package org.KeyCrafter.server;

public interface ServerConstants {
    int KeyCrafter_OK = 0;
    int KeyCrafter_ERR = -1;
    // int最高位是符号位，只能用31位
    int KeyCrafter_LRU_BITS = 31;
    // obj.lru 最大值
    int KeyCrafter_LRU_CLOCK_MAX = (1 << KeyCrafter_LRU_BITS) - 1;
    // LRU clock 的精度，单位 ms
    int KeyCrafter_LRU_CLOCK_RESOLUTION = 1000;

    /* Units */
    int UNIT_SECONDS = 0;
    int UNIT_MILLISECONDS = 1;
    int KeyCrafter_AOF_REWRITE_ITEMS_PER_CMD = 64;
    // conf
    String CONF_FILE_PATH = "/config.properties";
    int KeyCrafter_DEFAULT_HZ = 10;
}
